package com.demo.dao;

import com.demo.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface IUserDao {

    User findUserById(@Param("id") Integer id);

    @Select("SELECT * FROM user WHERE id = #{id}")
    User queryUserById(@Param("id") Integer id);
}
